﻿using BrnMall.CacheStrategy.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QDChat.Service
{
    public sealed class RedisService
    {
        private static object _locker = new object();//锁对象
        private static CacheStrategy _redis = new CacheStrategy();

        public static T Get<T>(string key)
        {
            if (string.IsNullOrWhiteSpace(key))
                return default(T);
            return _redis.Get<T>(key);
        }
    }
}
